import axios from "axios";

export function request(config){
    const instance = axios.create({
        baseURL:'http://localhost:8090',
        // baseURL:'http://192.168.25.105:8090',
        timeout:100000
    })
    instance.interceptors.request.use(config =>{
        return config
    },err =>{ })

    instance.interceptors.response.use(res =>{
        return res.data
    },err =>{ console.log(err) })
    return instance(config)

}


